package com.example.dongruandemo1.POJO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 
 * @TableName bbb
 */
@TableName(value ="bbb")
@Data
public class Bbb {
    /**
     * 
     */
    private String mc;

    /**
     * 
     */
    private Integer sl;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Bbb other = (Bbb) that;
        return (this.getMc() == null ? other.getMc() == null : this.getMc().equals(other.getMc()))
            && (this.getSl() == null ? other.getSl() == null : this.getSl().equals(other.getSl()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMc() == null) ? 0 : getMc().hashCode());
        result = prime * result + ((getSl() == null) ? 0 : getSl().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", mc=").append(mc);
        sb.append(", sl=").append(sl);
        sb.append("]");
        return sb.toString();
    }
}